package cn.tsmchina.one.service.category;

import java.util.List;

import cn.tsmchina.one.domain.category.Category;

public interface CategoryService
{
	List<Category> getAllSubRestaurant(long customerId);
	
	/**
	 * 根据子店铺获得所有菜品种类
	 * @param subRestaurant
	 * @return
	 */
	List<Category> getAllFoodCategory(String subRestaurant, long customerId);
	
	Category getById(int id);

	List<Category> getSubRestaurant(int page, long customerId);

	void updateCategory(Category category);

	void deleteCategory(int id);

	void addCategory(Category category);

	String genId(String pid, long customerId);

	Category getByCategoryCid(String categoryCid, long customerId);
	
	Category getByCategoryLoginId(Integer loginId);
	
	String getNameByLoginId(Integer loginId);

}
